package com.crl.gClient.manager
{
	import com.crl.map.controller.MapController;
	import com.crl.map.model.MapModel;

	public class MapManager
	{
		private var mapController:MapController;
		public function MapManager()
		{
			mapController=new MapController();
		}
		
		private static var instance:MapManager=new MapManager();
		
		public static function gotoMap(mapid:String):void{
			var data:Array=[];
			var model:MapModel=new MapModel();
			model.fill(data);
			
			instance.mapController.setModel(model);
		}
		
		public static function getMapController():MapController{
			return instance.mapController;
		}
	}
}